<nz-spin class="usedPD" [nzSpinning]="isSpinning">
    <!--<form nz-form [formGroup]="validateForm" (ngSubmit)="submitForm()">
        <div nz-form-item nz-row>
           

            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="businessScope" >经营范围</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('businessScope')">
                <nz-input  [nzDisabled]="isDisable" name="businessScope" [nzId]="'businessScope'" formControlName="businessScope" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.businessScope"
                    name="businessScope"></nz-input>
            </div>

            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="safetyPersonName">安全管理员（姓名）</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('safetyPersonName')">
                <nz-input  [nzDisabled]="isDisable" name="safetyPersonName" formControlName="safetyPersonName" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.safetyPersonName"></nz-input>
            </div>
        </div>
        <div nz-form-item nz-row>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="elevatorNum" >电梯总台数</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('elevatorNum')">
                <nz-input nzType="number" [nzDisabled]="isDisable" [nzSize]="'large'" formControlName="elevatorNum" [nzId]="'elevatorNum'" [(ngModel)]="usedPartyDetailBean.elevatorNum"
                    name="elevatorNum"></nz-input>
            </div>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="operatorNum" >特种设备操作人员数量</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('operatorNum')">
                <nz-input nzType="number" [nzDisabled]="isDisable" name="operatorNum" [nzId]="'operatorNum'" formControlName="operatorNum" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.operatorNum"></nz-input>
            </div>
        </div>
        <div nz-form-item nz-row>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="specialEquipmentAccidents" >近五年发生设备事故情况</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('specialEquipmentAccidents')">
                <nz-input  [nzDisabled]="isDisable" name="specialEquipmentAccidents" [nzId]="'specialEquipmentAccidents'" formControlName="specialEquipmentAccidents"
                    [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.specialEquipmentAccidents" ></nz-input>
            </div>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="legalPersonName">法人代表（姓名）</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('legalPersonName')">
                <nz-input  [nzDisabled]="isDisable" name="legalPersonName" formControlName="legalPersonName" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.legalPersonName"></nz-input>
            </div>
        </div>
        <div nz-form-item nz-row>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="legalPersonPhone">法人联系方式</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('legalPersonPhone')">
                <nz-input nzType="number" [nzDisabled]="isDisable" name="legalPersonPhone" formControlName="legalPersonPhone" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.legalPersonPhone"></nz-input>
            </div>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="safetyPersonPhone">安全管理人员联系电话</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('safetyPersonPhone')">
                <nz-input nzType="number" [nzDisabled]="isDisable" name="safetyPersonPhone" [nzId]="'safetyPersonPhone'" formControlName="safetyPersonPhone" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.safetyPersonPhone"></nz-input>
            </div>
        </div>

        <div nz-form-item nz-row>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="zzjb">资质级别</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('zzjb')">
                <nz-select
                nzAllowClear
                [nzPlaceHolder]="'选择级别'"
                formControlName="zzjb"
                [nzSize]="'large'" 
                [(ngModel)]="usedPartyDetailBean.zzjb"
                [nzShowSearch]="true">
                <nz-option
                  [nzLabel]="'A级'" [nzValue]="'C'" [nzDisabled]="false">
                </nz-option>
                <nz-option
                    [nzLabel]="'B级'" [nzValue]="'C'" [nzDisabled]="false">
                 </nz-option>
                 <nz-option
                    [nzLabel]="'C级'" [nzValue]="'C'" [nzDisabled]="false">
                </nz-option>
                
              </nz-select>
            </div>
            <div nz-form-label nz-col [nzSm]="4" [nzXs]="4">
                <label for="czryNum">持证人员数量</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback [nzValidateStatus]="getFormControl('czryNum')">
                <nz-input nzType="number" [nzDisabled]="isDisable" name="czryNum" formControlName="czryNum" [nzSize]="'large'" [(ngModel)]="usedPartyDetailBean.czryNum"></nz-input>
            </div>
        </div>
        <div nz-form-item nz-row >
            <div nz-form-label nz-col [nzSm]="4" >
                <label for="zzsUrl">资质附件</label>
            </div>
            <div nz-form-control nz-col [nzSm]="7" [nzXs]="7" nzHasFeedback *ngIf="inPartyId=='undefind'||inPartyId==null||inPartyId==''">
                <input type="file" ng2FileSelect [uploader]="fileUploader" (change)="selectedFileOnChanged1($event)"/>
            </div>
        </div>

        <div nz-form-item nz-row *ngIf="inPartyId=='undefind'||inPartyId==null||inPartyId==''">
            <div *ngIf="showImage1!=null" style="margin-left: 50px">
                <div>
                    <img (click)="delete1(f)" *ngFor="let f of showImage1" src="{{config.IP+config.API.getUpload+f}}" width="40px" height="40px" style="margin-left: 10px;"/>
                </div>
            </div>
        </div>

        <div nz-form-item nz-row *ngIf="inPartyId!='undefind'&&inPartyId!=null&&inPartyId!=''">
            <div *ngIf="showImage1!=null" style="margin-left: 50px">
                <div>
                    <img (click)="showlargeImg(titlepic, contentpic, footerpic, f)" *ngFor="let f of showImage1" src="{{config.IP+config.API.getUpload+f}}" width="40px" height="40px" style="margin-left: 10px;"/>
                </div>
            </div>
        </div>

        <div *ngIf="inPartyId=='undefind'||inPartyId==null||inPartyId==''" nz-form-item nz-row style="margin-bottom:30%;">
            <div nz-form-control nz-col [nzSpan]="14" [nzOffset]="10">
                <button nz-button [nzSize]="'large'" [nzType]="'primary'">确定</button>
            </div>
        </div>
    </form>-->
    <div class="noticeC" *ngIf="inPartyId!='undefind'&&inPartyId!=null&&inPartyId!=''" >
            <div  nz-form-item nz-row>
                    <div nz-form-label nz-col [nzSm]="3" [nzXs]="3">
                        <label for="title">标题</label>
                    </div>
                    <div nz-form-control nz-col [nzSm]="6" [nzXs]="6">
                        <nz-input name="title" [(ngModel)]="noticeBean.title" [nzType]="'text'" [nzRows]="'5'" [nzPlaceHolder]="'请输入标题'"></nz-input>
                    </div>
                </div>
            <div  nz-form-item nz-row>
                <div nz-form-label nz-col [nzSm]="3" [nzXs]="3">
                    <label for="content">内容</label>
                </div>
                <div nz-form-control nz-col [nzSm]="12" [nzXs]="12">
                    <nz-input name="content" [(ngModel)]="noticeBean.content" [nzType]="'textarea'" [nzRows]="'5'" [nzPlaceHolder]="'请输入内容'"></nz-input>
                </div>
            </div>
    
            <div nz-form-item nz-row>
                <div nz-form-label nz-col [nzSm]="3" >
                    <label for="qualificationsUrl">上传附件 </label>
                </div>
                <div nz-form-control nz-col [nzSm]="14" [nzXs]="14" nzHasFeedback >
                    <input type="file" ng2FileSelect [uploader]="fileUploader" (change)="selectedFileOnChanged($event)"/>
                </div>
            </div>
            <div nz-form-item nz-row>
                <div *ngIf="showImage!=null" style="margin-left: 50px">
                    <div>
                        <img (click)="delete(f)" *ngFor="let f of showImage" src="{{config.IP+config.API.getUpload+f}}" width="40px" height="40px" style="margin-left: 10px;"/>
                    </div>
                </div>
            </div>
    
            <div nz-form-item nz-row style="margin-bottom:8px;">
                <div nz-form-control nz-col [nzSpan]="14" [nzOffset]="10">
                    <button nz-button (click)="sendMessage()" [nzType]="'primary'">发送</button>
                </div>
            </div>
        </div>

</nz-spin>

<ng-template #titlepic>
    <span>查看大图</span>
</ng-template>
<ng-template #contentpic>
    <enlarge-pic [inValue]="picList" (outPut)="addOutPut($event)"></enlarge-pic>
</ng-template>
<ng-template #footerpic>
    <div>
    </div>
</ng-template>